﻿using Serilog;
using Serilog.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XjjXmm.Spider.biquge;

namespace XjjXmm.Spider
{
    internal interface ISiteSpider
    {

        string Domain { get; }

        SiteSetting? GetSetting();

        ILogger GetLogger();

        IAsyncEnumerable<string> FetchNovelLinks();

        Task<NovelModel> FetchNovel(string url);

        IAsyncEnumerable<Chapter> FetchChapters(string url);

        Task<string> FetchContent(string url);

        //Task ImportUnFetchLink();
        //Task Run();
        //string Domain { get; }

        //IAsyncEnumerable<string> FetchNovelLinks();

        //Task<NovelModel> FetchNovel(string url);

        //Task<IAsyncEnumerable<Chapter>> FetchChapters(string url);

        //Task<string> FetchContent(string url);


        //Logger GetLogger();
    }


}
